# NameError
# prlnt("hello world")  # 函数名拼写错误
a = "a"
# print(aa)  # 变量名拼写错误
# print(b)  # 不存在的变量

# SyntaxError
# if "a" == "b"
#     print("success")

# IndentationError
# if "a" == "b":
# print("success")

# TypeError
# print(3 + '2')

# AttributeError
tuple1 = (1, 2, 3)
# tuple.append(6)
# print(tuple1)

# KeyError
# d = {"a": 2}
# print(d["b"])

# IndexError
print(tuple1[3])
